package chixing.day02;

public class SwitchCaseDemo {
    public static void main(String[] args) {
        int month = 3;
        switch (month){
            case 1:
                System.out.println("31");
                break;
            case 2:
                System.out.println("28");
                break;
            case 3:
                System.out.println("31");
            case 4:
                System.out.println("30");
            default:
            System.out.println("error");
        }
    }
}
